package com.estar.assistsurvy.utils;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class CheckInfoUtils {

	  public boolean isPhoneNumberValid(String phoneNumber) {
	 	   boolean isValid = false;
	 	   CharSequence inputStr = phoneNumber;
	 	   //正则表达式
	 	      
	 	   String phone="^1[34578]\\d{9}$" ;
	 	
	 	
	 	   Pattern pattern = Pattern.compile(phone);
	 	   Matcher matcher = pattern.matcher(inputStr);
	 	   
	 	 
	 	   if(matcher.matches()) {
	 		   isValid = true;
	 	   }
	 	   return isValid;
	    }
}
